package Month10.day1009;

public class TestString3 {
        public static void main(String[] args) {
            System.out.println(String.format("%d-%3d-%3d",2021,10,9));
        }
    /* String s1 = "Apple";
            //字符串转数组
            char[] test1 = s1.toCharArray();
            for (int i = 0; i < test1.length; i++) {
                System.out.print(test1[i] + " ");
            }
            System.out.println();
            //数组转字符串
            String test2 = new String(test1);
            System.out.println(test2);*/
    /* String s1 = "apple";
        System.out.println(s1.toUpperCase());
        String s2 = "APPLE";
        System.out.println(s2.toLowerCase());*/
    /*String s1 = "111";
        String s2 = "18.26";
        int a1 = Integer.parseInt(s1);
        float f1 = Float.parseFloat(s2);
        System.out.println(a1);
        System.out.println(f1);*/
}
